package edu.vt.sdm.tcga;

import org.eclipse.swt.graphics.Point;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

	private static final String PERSPECTIVE_ID = "edu.vt.sdm.tcga.perspective";

    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
//    	Point initialSize = new Point(800, 600);    	
//    	configurer.setInitialSize(initialSize);
        return new ApplicationWorkbenchWindowAdvisor(configurer);
    }

	public String getInitialWindowPerspectiveId() {
		return PERSPECTIVE_ID;
	}

	@Override
	public void preWindowOpen(IWorkbenchWindowConfigurer configurer) {
		// TODO Auto-generated method stub
////		super.preWindowOpen(configurer);
//		IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
		configurer.setInitialSize(new Point(1024, 768));
		configurer.setTitle("I have changed the title!");
		super.preWindowOpen(configurer);
	}
}
